package com.tl.web.controller.api;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.tl.common.core.controller.BaseController;
import com.tl.common.core.domain.AjaxResult;
import com.tl.app.domain.AppCarousel;
import com.tl.app.service.IAppCarouselService;

/**
 * 轮播Controller
 * 
 * @author suhp
 * @date 2024-06-21
 */
@RestController
@RequestMapping("/api/carousel")
public class ApiCarouselController extends BaseController
{
    @Autowired
    private IAppCarouselService appCarouselService;

    /**
     * 查询轮播列表
     */
    @GetMapping("/list")
    public AjaxResult list(AppCarousel appCarousel)
    {
        List<AppCarousel> list = appCarouselService.selectAppCarouselList(appCarousel);
        return AjaxResult.success(list);
    }

    
}
